﻿#region Using Directives

    using System;

    using Csla;

#endregion

namespace MarketPulse.BusinessLogic.Common.Criteria
{
    /// <summary>
    /// Criteria class specifying the GUID to use to identify a single Profile
    /// </summary>
    [Serializable]
    public class ProfileGUIDCriteria : CriteriaBase<ProfileGUIDCriteria>
    {

        #region Constructors

            /// <summary>
            /// Default constructor for this class
            /// </summary>
            /// <param name="profileGuid">The Guid of the Profile to associate with this criteria</param>                      
            public ProfileGUIDCriteria(Guid profileGuid)
            {
                ProfileGUID = profileGuid;
            }

        #endregion

        #region Properties

            /// <summary>
            /// This Guid is used to identify the Profile object associated with this criteria
            /// </summary>
            public static PropertyInfo<Guid?> ProfileGUIDProperty = RegisterProperty<Guid?>(p => p.ProfileGUID);
            /// <summary>
            /// This Guid is used to identify the Profile object associated with this criteria
            /// </summary>
            public Guid? ProfileGUID
            {
                get { return ReadProperty(ProfileGUIDProperty); }
                private set { LoadProperty(ProfileGUIDProperty, value); }
            }

        #endregion

    }
}
